ostree-repo: replace more gs_unref_(variant|bytes) with g_autoptr
authorGiuseppe Scrivano <gscrivan@redhat.com>
Thu, 14 May 2015 07:56:00 +0000 (09:56 +0200)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Thu, 14 May 2015 08:04:16 +0000 (10:04 +0200)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/libostree/ostree-repo.c

index 148dfadd7b0ae55f18f85fd7b3f38889af07082f..2f211494853bc0626dfc50d73104142ba186bcee 100644 (file)
@@ -3806,9 +3806,9 @@ _ostree_repo_verify_commit_internal (OstreeRepo    *self,
                                      GError       **error)
 {
   OstreeGpgVerifyResult *result = NULL;
-  gs_unref_variant GVariant *commit_variant = NULL;
-  gs_unref_variant GVariant *metadata = NULL;
-  gs_unref_bytes GBytes *signed_data = NULL;
+  g_autoptr(GVariant) commit_variant = NULL;
+  g_autoptr(GVariant) metadata = NULL;
+  g_autoptr(GBytes) signed_data = NULL;
 
   /* Load the commit */
   if (!ostree_repo_load_variant (self, OSTREE_OBJECT_TYPE_COMMIT,